package bs.service.impl;

import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;
import org.springframework.transaction.annotation.Propagation;
import org.springframework.transaction.annotation.Transactional;

import bs.dao.LogDao;
import bs.entity.SysLog;
import bs.service.LogService;

/**
 * 
 * LogService:
 *
 * @author 姜治昊
 * @time 2017年11月19日 下午11:39:34
 */
@Service
public class LogServiceImpl implements LogService{

	@Autowired
	private LogDao logDao;
	
	/**
	 * 存储日志
	 * @param syslog
	 */
	@Override
	@Transactional(propagation=Propagation.REQUIRED, rollbackFor=Exception.class)
	public void actionLog(SysLog syslog) {
		logDao.actionLog(syslog);
	}
	
}
